3.1.95 \(\int (\frac {x^2}{\text {csch}^{\frac {3}{2}}(x)}+\frac {1}{3} x^2 \sqrt {\text {csch}(x)}) \, dx\) [95]

Optimal. Leaf size=76 \[ -\frac {8 x}{9 \text {csch}^{\frac {3}{2}}(x)}+\frac {16 \cosh (x)}{27 \sqrt {\text {csch}(x)}}+\frac {2 x^2 \cosh (x)}{3 \sqrt {\text {csch}(x)}}-\frac {16}{27} i \sqrt {\text {csch}(x)} F\left (\left .\frac {\pi }{4}-\frac {i x}{2}\right |2\right ) \sqrt {i \sinh (x)} \]

[Out]

-8/9*x/csch(x)^(3/2)+16/27*cosh(x)/csch(x)^(1/2)+2/3*x^2*cosh(x)/csch(x)^(1/2)-16/27*I*(sin(1/4*Pi+1/2*I*x)^2)
^(1/2)/sin(1/4*Pi+1/2*I*x)*EllipticF(cos(1/4*Pi+1/2*I*x),2^(1/2))*csch(x)^(1/2)*(I*sinh(x))^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.15, antiderivative size = 76, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 5, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.208, Rules used = {4273, 4274, 3854, 3856, 2720} \begin {gather*} \frac {2 x^2 \cosh (x)}{3 \sqrt {\text {csch}(x)}}-\frac {8 x}{9 \text {csch}^{\frac {3}{2}}(x)}+\frac {16 \cosh (x)}{27 \sqrt {\text {csch}(x)}}-\frac {16}{27} i \sqrt {i \sinh (x)} \sqrt {\text {csch}(x)} F\left (\left .\frac {\pi }{4}-\frac {i x}{2}\right |2\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[x^2/Csch[x]^(3/2) + (x^2*Sqrt[Csch[x]])/3,x]

[Out]

(-8*x)/(9*Csch[x]^(3/2)) + (16*Cosh[x])/(27*Sqrt[Csch[x]]) + (2*x^2*Cosh[x])/(3*Sqrt[Csch[x]]) - ((16*I)/27)*S
qrt[Csch[x]]*EllipticF[Pi/4 - (I/2)*x, 2]*Sqrt[I*Sinh[x]]

Rule 2720

Int[1/Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2/d)*EllipticF[(1/2)*(c - Pi/2 + d*x), 2], x] /; FreeQ
[{c, d}, x]

Rule 3854

Int[(csc[(c_.) + (d_.)*(x_)]*(b_.))^(n_), x_Symbol] :> Simp[Cos[c + d*x]*((b*Csc[c + d*x])^(n + 1)/(b*d*n)), x
] + Dist[(n + 1)/(b^2*n), Int[(b*Csc[c + d*x])^(n + 2), x], x] /; FreeQ[{b, c, d}, x] && LtQ[n, -1] && Integer
Q[2*n]

Rule 3856

Int[(csc[(c_.) + (d_.)*(x_)]*(b_.))^(n_), x_Symbol] :> Dist[(b*Csc[c + d*x])^n*Sin[c + d*x]^n, Int[1/Sin[c + d
*x]^n, x], x] /; FreeQ[{b, c, d}, x] && EqQ[n^2, 1/4]

Rule 4273

Int[(csc[(e_.) + (f_.)*(x_)]*(b_.))^(n_)*((c_.) + (d_.)*(x_))^(m_), x_Symbol] :> Simp[d*m*(c + d*x)^(m - 1)*((
b*Csc[e + f*x])^n/(f^2*n^2)), x] + (Dist[(n + 1)/(b^2*n), Int[(c + d*x)^m*(b*Csc[e + f*x])^(n + 2), x], x] - D
ist[d^2*m*((m - 1)/(f^2*n^2)), Int[(c + d*x)^(m - 2)*(b*Csc[e + f*x])^n, x], x] + Simp[(c + d*x)^m*Cos[e + f*x
]*((b*Csc[e + f*x])^(n + 1)/(b*f*n)), x]) /; FreeQ[{b, c, d, e, f}, x] && LtQ[n, -1] && GtQ[m, 1]

Rule 4274

Int[(csc[(e_.) + (f_.)*(x_)]*(b_.))^(n_)*((c_.) + (d_.)*(x_))^(m_.), x_Symbol] :> Dist[(b*Sin[e + f*x])^n*(b*C
sc[e + f*x])^n, Int[(c + d*x)^m/(b*Sin[e + f*x])^n, x], x] /; FreeQ[{b, c, d, e, f, m, n}, x] &&  !IntegerQ[n]

Rubi steps

\begin {align*} \int \left (\frac {x^2}{\text {csch}^{\frac {3}{2}}(x)}+\frac {1}{3} x^2 \sqrt {\text {csch}(x)}\right ) \, dx &=\frac {1}{3} \int x^2 \sqrt {\text {csch}(x)} \, dx+\int \frac {x^2}{\text {csch}^{\frac {3}{2}}(x)} \, dx\\ &=-\frac {8 x}{9 \text {csch}^{\frac {3}{2}}(x)}+\frac {2 x^2 \cosh (x)}{3 \sqrt {\text {csch}(x)}}-\frac {1}{3} \int x^2 \sqrt {\text {csch}(x)} \, dx+\frac {8}{9} \int \frac {1}{\text {csch}^{\frac {3}{2}}(x)} \, dx+\frac {1}{3} \left (\sqrt {\text {csch}(x)} \sqrt {-\sinh (x)}\right ) \int \frac {x^2}{\sqrt {-\sinh (x)}} \, dx\\ &=-\frac {8 x}{9 \text {csch}^{\frac {3}{2}}(x)}+\frac {16 \cosh (x)}{27 \sqrt {\text {csch}(x)}}+\frac {2 x^2 \cosh (x)}{3 \sqrt {\text {csch}(x)}}-\frac {8}{27} \int \sqrt {\text {csch}(x)} \, dx\\ &=-\frac {8 x}{9 \text {csch}^{\frac {3}{2}}(x)}+\frac {16 \cosh (x)}{27 \sqrt {\text {csch}(x)}}+\frac {2 x^2 \cosh (x)}{3 \sqrt {\text {csch}(x)}}-\frac {1}{27} \left (8 \sqrt {\text {csch}(x)} \sqrt {i \sinh (x)}\right ) \int \frac {1}{\sqrt {i \sinh (x)}} \, dx\\ &=-\frac {8 x}{9 \text {csch}^{\frac {3}{2}}(x)}+\frac {16 \cosh (x)}{27 \sqrt {\text {csch}(x)}}+\frac {2 x^2 \cosh (x)}{3 \sqrt {\text {csch}(x)}}-\frac {16}{27} i \sqrt {\text {csch}(x)} F\left (\left .\frac {\pi }{4}-\frac {i x}{2}\right |2\right ) \sqrt {i \sinh (x)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.10, size = 63, normalized size = 0.83 \begin {gather*} \frac {1}{27} \sqrt {\text {csch}(x)} \left (12 x-12 x \cosh (2 x)-16 i F\left (\left .\frac {1}{4} (\pi -2 i x)\right |2\right ) \sqrt {i \sinh (x)}+8 \sinh (2 x)+9 x^2 \sinh (2 x)\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[x^2/Csch[x]^(3/2) + (x^2*Sqrt[Csch[x]])/3,x]

[Out]

(Sqrt[Csch[x]]*(12*x - 12*x*Cosh[2*x] - (16*I)*EllipticF[(Pi - (2*I)*x)/4, 2]*Sqrt[I*Sinh[x]] + 8*Sinh[2*x] +
9*x^2*Sinh[2*x]))/27

________________________________________________________________________________________

Maple [F]
time = 1.59, size = 0, normalized size = 0.00 \[\int \frac {x^{2}}{\mathrm {csch}\left (x \right )^{\frac {3}{2}}}+\frac {x^{2} \sqrt {\mathrm {csch}\left (x \right )}}{3}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2/csch(x)^(3/2)+1/3*x^2*csch(x)^(1/2),x)

[Out]

int(x^2/csch(x)^(3/2)+1/3*x^2*csch(x)^(1/2),x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2/csch(x)^(3/2)+1/3*x^2*csch(x)^(1/2),x, algorithm="maxima")

[Out]

integrate(1/3*x^2*sqrt(csch(x)) + x^2/csch(x)^(3/2), x)

________________________________________________________________________________________

Fricas [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2/csch(x)^(3/2)+1/3*x^2*csch(x)^(1/2),x, algorithm="fricas")

[Out]

Exception raised: TypeError >>  Error detected within library code:   integrate: implementation incomplete (ha
s polynomial part)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \frac {\int \frac {3 x^{2}}{\operatorname {csch}^{\frac {3}{2}}{\left (x \right )}}\, dx + \int x^{2} \sqrt {\operatorname {csch}{\left (x \right )}}\, dx}{3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**2/csch(x)**(3/2)+1/3*x**2*csch(x)**(1/2),x)

[Out]

(Integral(3*x**2/csch(x)**(3/2), x) + Integral(x**2*sqrt(csch(x)), x))/3

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2/csch(x)^(3/2)+1/3*x^2*csch(x)^(1/2),x, algorithm="giac")

[Out]

integrate(1/3*x^2*sqrt(csch(x)) + x^2/csch(x)^(3/2), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x^2\,\sqrt {\frac {1}{\mathrm {sinh}\left (x\right )}}}{3}+\frac {x^2}{{\left (\frac {1}{\mathrm {sinh}\left (x\right )}\right )}^{3/2}} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((x^2*(1/sinh(x))^(1/2))/3 + x^2/(1/sinh(x))^(3/2),x)

[Out]

int((x^2*(1/sinh(x))^(1/2))/3 + x^2/(1/sinh(x))^(3/2), x)

________________________________________________________________________________________